package com.woniuxy.param;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class SaveWarehouseParam {
    @NotBlank(message = "仓库名不能为空！")

    private String warehouseName;

    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}", message = "手机号格式错误！")
    @NotBlank(message = "手机号不能为空！")
    @ApiModelProperty("手机号")
    private String warehousePhone;

    @NotBlank(message = "联系人不能为空！")

    private String warehouseLinkman;

    @NotBlank(message = "地址不能为空！")

    private String warehouseAddress;

    @NotNull(message = "状态不能为空！")
    @ApiModelProperty(value = "0为启用，1为禁用")
    private Integer warehouseStatus;

}
